package com.jeejam.storage.service;

import java.util.List;

import com.jeejam.framework.base.pojo.TreePager;
import com.jeejam.framework.base.service.BaseService;
import com.jeejam.storage.pojo.Depot;

public interface DepotService extends BaseService{
	
	public List<Depot> selectRoot();
	
	public List<Depot> selectRootByPage(int page, int pageSize);
	
	public List<Depot> selectChildren(int id);
	
	public List<Depot> selectSubChildren(int parentId);
	
	public TreePager getTreePager(int currentPage, int pageSize);
	
	public int countsWithRoot();
	
	public Depot findByCode(String code);
	
	public void deleteWithChildren(int id);
	
}
